import { ref } from 'vue'
import { defineStore } from 'pinia'
import { getCaegoryApi } from '@/apis/layout/layout';

export const useCategoryStore = defineStore('category', () => {

  const categoryList = ref([])

  const getCategoryList = async()=>{
    const res = await getCaegoryApi()
    categoryList.value = res.result
  } 
  return{
    categoryList,
    getCategoryList
  }

})
